<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:uddi="urn:uddi-org:api_v3">
	<xsl:output method="xml" encoding="UTF-8"/>
	
	<xsl:include href="name.xsl"/>
	<xsl:include href="description.xsl"/>
	<xsl:include href="identifierbag.xsl"/>
	<xsl:include href="categorybag.xsl"/>
	
	<!-- Match the TModel UDDI entity -->
	<xsl:template match="uddi:tModel">
		<h2>TModel </h2>
		<h3>UDDI ID: <xsl:value-of select="@tModelKey"/></h3>
		<xsl:variable name="nameCount"><xsl:value-of select="count(uddi:name)"/></xsl:variable>
		<xsl:apply-templates select="." mode="name"/>
		<xsl:apply-templates select="." mode="description"/>
		<xsl:apply-templates select="uddi:identiferBag"/>
		<xsl:apply-templates select="uddi:categoryBag"/>
	</xsl:template>
</xsl:stylesheet>